package com.keeson.android_cli.ui.main;

import android.view.View;
import android.widget.TextView;
import com.keeson.android_cli.R;
import com.keeson.android_cli.base.BaseActivity;
import com.keeson.android_cli.base.BaseEvent;
import com.keeson.android_cli.manager.ActivityManager;
import com.keeson.android_cli.util.UIHelper;
import com.keeson.android_cli.util.cache.UserDataCache;
import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by jiaqiZHou
 * on 2020/12/4
 */
public class TokenExpireDialog extends BaseActivity {


    @BindView(R.id.tv_cancel)
    TextView tv_cancel;

    @BindView(R.id.tv_confirm)
    TextView tv_confirm;

    @Override
    public int getLayoutId() {
        return R.layout.activity_token_expire;
    }

    @Override
    public void initView() {


    }


    @Override
    protected boolean isRegisterEventBus() {
        return true;
    }

    @Override
    protected void receiveEvent(BaseEvent event) {
        switch (event.getCode()) {

        }
    }


    @OnClick({R.id.tv_cancel,R.id.tv_confirm})
    public void onViewClicked(View v) {
        switch (v.getId()) {
            case R.id.tv_cancel:
                    finish();
                break;
            case R.id.tv_confirm:
                    /*UIHelper.toActivityCommon(context, LoginActivity.class);
                    UserDataCache.getInstance().loginOut();
                    ActivityManager.getInstance().toLogin();*/
                break;

        }
    }



    @Override
    protected void initImmersionBar() {
        super.initImmersionBar();

     /*   ImmersionBar.with(this)
                .statusBarDarkFont(true)//状态栏黑色
                .barColor(R.color.white)
                .navigationBarColor(R.color.color_F5F5F5)
                .init();*/
    }

}